package com.qcu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qcu.entity.Archive;
import com.qcu.util.Response;
import com.qcu.vo.ArchiveOfUserVO;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

/**
* @author MyComputer
* @description 针对表【archive】的数据库操作Service
* @createDate 2025-02-07 12:52:01
*/
public interface ArchiveService extends IService<Archive> {

    boolean saveArchive(Archive archive);

    boolean updateByIdAndToLog(Archive archive);

    /**
     * 导出风险表到excel
     * @param response
     */
    void export(HttpServletResponse response);

    /**
     * 获取所有风险信息
     *
     * @return
     */
    Response getAllRisk();

    List<ArchiveOfUserVO> getArchiveOfUser(String username);
}
